package com.gxa.modules.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxa.modules.dto.OrderFileVo;
import com.gxa.modules.dto.OrderPageDTO;
import com.gxa.modules.entity.CrmOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Create with IntelliJ IDEA.
 * Description:
 * User: ZY
 * Date: 2023-03-23
 * Time: 16:32
 */
@Repository
public  interface OrderMapper extends BaseMapper<CrmOrder> {
    Page<CrmOrder> findOrderList(Page page, @Param("startTime")Date startTime,@Param("endTime")Date endTime,@Param("condition")String condition,@Param("orderPageDTO") OrderPageDTO orderPageDTO);

    //导出接口
    List<OrderFileVo> showAll(OrderFileVo orderFileVo);

    //分批次导入
    List<OrderFileVo> showAllByPage(Map<String, Object> queryCondition);


}
